package com.unionpay.mpds.web.action.index;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.beans.factory.annotation.Autowired;

import com.unionpay.mpds.model.Branch;
import com.unionpay.mpds.service.BranchService;
import com.unionpay.mpds.web.action.BaseAction;

@ParentPackage("control-center")
public class IndexAction extends BaseAction {
	
	@Autowired
	private BranchService branchService;
	
	@Action
	public String index() {
		Branch branch = branchService.get("B00000000000001");
		this.getActionContext().put("branch", branch);
		return "index";
	}
	
}
